﻿<Application x:Class="SugarTank.Mobile.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
             xmlns:ioc="clr-namespace:SugarTank.Mobile.IoC"
             xmlns:res="clr-namespace:SugarTank.Mobile.Content.Resources">

    <!--Application Resources-->
    <Application.Resources>
        <ioc:ServiceLocator x:Key="ServiceLocator" />
        <res:Global x:Key="GlobalResources" />
    </Application.Resources>

    <Application.ApplicationLifetimeObjects>
        <!--Required object that handles lifetime events for the application-->
        <shell:PhoneApplicationService Launching="Application_Launching"
                                       Closing="Application_Closing"
                                       Activated="Application_Activated"
                                       Deactivated="Application_Deactivated" />
    </Application.ApplicationLifetimeObjects>

</Application>